Trees | Indices | Toggle frames |
---|
__init__(self,
width=256,
height=256)
Create a texture atlas of the given size.
|
|
TextureRegion |
add(self,
img)
Add an image to the atlas.
|
Add an image to the atlas.
This method will fail if the given image cannot be transferred directly to a texture (for example, if it is another texture). ImageData is the usual image type for this method.
AllocatorException will be raised if there is no room in the atlas for the image.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |